package com.translate.web.param;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

import com.translate.web.constant.ValidateCondtionAndMessage;
import com.translate.web.param.contract.IRegisterParamByEmail;

public class RegisterParamByEmail implements IRegisterParamByEmail {

	@NotNull
	@Pattern(regexp = ValidateCondtionAndMessage.EMAIL_PATTERN, message = ValidateCondtionAndMessage.EMAIL_PATTERN_MSG)
	private String eamil;

	@NotNull
	@Min(value = ValidateCondtionAndMessage.MIN_SMS_CODE, message = ValidateCondtionAndMessage.MIN_SMS_CODE_MSG)
	private Integer code;
	


	@NotNull
	private String pwd;
	
	@NotNull
	private String pwdInputAgin;
	
	@NotNull
	@Min(value = ValidateCondtionAndMessage.MIN_STATUS, message = ValidateCondtionAndMessage.MIN_STATUS_MSG)
	private Byte userType;

	
	public Byte getUserType() {
		return userType;
	}

	public void setUserType(Byte userType) {
		this.userType = userType;
	}

	public String getEamil() {
		return eamil;
	}

	public void setEamil(String eamil) {
		this.eamil = eamil;
	}



	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getPwd() {
		return pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public String getPwdInputAgin() {
		return pwdInputAgin;
	}

	public void setPwdInputAgin(String pwdInputAgin) {
		this.pwdInputAgin = pwdInputAgin;
	}

}
